package com.bdcom.autotest.interaction.step.remodel;

import com.bdcom.autotest.interaction.bean.DeviceUpdBean;
import com.bdcom.autotest.interaction.socket.DataUtil;
import com.bdcom.autotest.interaction.step.IStepHandler;
import com.bdcom.autotest.interaction.step.StepThread;

import java.util.ArrayList;
import java.util.List;

public class ScanMac implements IStepHandler{

	
	@Override
	public boolean runStep(StepThread mainrun) {
		boolean result = false;
		if(!mainrun.isEndFlag()){
			mainrun.setEnterMonitorResult(new ArrayList<DeviceUpdBean>());
			String[] sns =mainrun.getMf().getLeftp().getsns();
			for(int i=0;i<sns.length;i++){
				result = mainrun.showInputDevSNWindow(mainrun,i+1);
				if(!result){
					return false;
				}
			}
		}
		return result;
//		return true;
	}
	
}
